package com.fick.hibernate.model;

import java.util.Date;
import java.util.Set;

/**
 * News entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class News implements java.io.Serializable {

	// Fields

	private Integer newId;

	private Channel channelid;

	private String title;

	private String content;

	private Date addDate;

	private Admin  admin;

	private String level;

	private String img;

	private Integer clickNum;

	private String isTop;

	private String filePath;
	
	private String isAss;
	
	private String source;
	
	private String isLogin;
	
	private String isSign;
	
	private String attachment;

	private String publisher;  //发布 人

	private String reviewed;  //审核人
	
	private String isBottom;//是否在底部显示图片新闻
	
	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getReviewed() {
		return reviewed;
	}

	public void setReviewed(String reviewed) {
		this.reviewed = reviewed;
	}


	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}
	

	private Set SignInfo; 
	// Constructors

	public String getIsLogin() {
		return isLogin;
	}
	
	public void setIsSign(String isSign)
	{
		this.isSign=isSign;
	}
	public String getIsSign()
	{
		return isSign;
	}
	public void setIsLogin(String isLogin) {
		this.isLogin = isLogin;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	/** default constructor */
	public News() {
	}

	/** full constructor */
	public News(Channel channelid, String title, String content, Date addDate,
			 String level, String img, Integer clickNum, String isTop, String filePath) {
		this.channelid= channelid;
		this.title = title;
		this.content = content;
		this.addDate = addDate;
		this.level = level;
		this.img = img;
		this.clickNum = clickNum;
		this.isTop = isTop;
		this.filePath = filePath;
	}

	public  News (Admin admin){
		this.admin=admin;
	}
	// Property accessors

	public Integer getNewId() {
		return this.newId;
	}

	public void setNewId(Integer newId) {
		this.newId = newId;
	}





	public Channel getChannelid() {
		return channelid;
	}

	public void setChannelid(Channel channelid) {
		this.channelid = channelid;
	}



	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getAddDate() {
		return this.addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	

	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}



	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getClickNum() {
		return this.clickNum;
	}

	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	public String getIsTop() {
		return this.isTop;
	}

	public void setIsTop(String isTop) {
		this.isTop = isTop;
	}

	public String getFilePath() {
		return this.filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("新闻信息\n");
		sb.append("content" + this.content + "\n");
		sb.append("editor" + this.level + "\n");
		sb.append("title" + this.title + "\n");
		return sb.toString();
	}

	public String getIsAss() {
		return isAss;
	}

	public void setIsAss(String isAss) {
		this.isAss = isAss;
	}

	public Set getSignInfo() {
		return SignInfo;
	}

	public void setSignInfo(Set signInfo) {
		SignInfo = signInfo;
	}

	public String getIsBottom() {
		return isBottom;
	}

	public void setIsBottom(String isBottom) {
		this.isBottom = isBottom;
	}

}